package fishinpool;
public class Victim extends Animal{
    private boolean food;
    private int x;
    private int y;
    private Area workArea;
    public void f(boolean food) { // так и не придумал как обозвать  функцию проверки  съедобности
        this.food = food;
    }
    private Victim(Area workArea){
        super();
        this.food = false;
    }
     private Victim(int x, int y, Area workArea){
        super();
        food = false;
     }
    @Override
     public String toString(){
        return String.format("Положение жертвы : ", position);
    }
     
     
     public void move() {     }
     
     
     public Animals newFish() {
        return new Victim(this.position.getX(), this.position.getY(), this.position.getWorkArea());
    }
     public int calcVictim() {
        return 1;
    }     
     public int getX() {        
        return x;    
    }
    public int getY() {        
        return y;    
    }
    private Area getWorkArea() {
        return workArea;
    }
}